#include<stdio.h>
int reverseNum(int);

int main()
{
    int        num ;

    scanf("%d",&num);
    printf("The reverse form of number %d is %d.\n",num,reverseNum(num)) ;

    return 0;
}

int reverseNum(int n)
{
    int fanzhuan=0;
    for(;n>0;)
    {
       fanzhuan=fanzhuan*10+n%10;
       n/=10;
    }
    return fanzhuan;
}